#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h> 
int main()
{
	int n = 0;
	scanf("%d", &n);
	int* p = (int*)malloc(2 * n * sizeof(int));
	int** p1 = &p;
	int i = 0;
	for (i = 0; i < n; i++)
	{
		scanf("%d,", p + i);
	}
	for (int j = 0; j < n; j++,i++)
	{
		*(p + i) = *(*p1 + j);
	}
	for (i = 0; i < 2 * n; i++)
	{
		printf("%d ", *(p + i));
	}
	free(p);
	p = NULL;
	p1 = NULL;
	return 0;
}
